import Login from './views/Login.vue'
import Home from './views/Home.vue'
import MealManagement from './views/MealManagement.vue'
import MealApply from './views/MealApply.vue'
import MyManagement from './views/MyManagement.vue'
import MyApply from './views/MyApply.vue'
import Search from './views/logistics/Search.vue'
import Sign from './views/logistics/Sign.vue'
//系统配置
import Power from './views/sysmanager/Power.vue'
import Restaurant from './views/sysmanager/Restaurant.vue'
import Expenses from './views/sysmanager/Expenses.vue'
import SettingAlert from './views/sysmanager/SettingAlert.vue'
//统计报表
import Report from './views/Report.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-managerment',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/mealmanagement', component: MealManagement, name: '待办事项',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-managerment2',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/sign', component: Sign, name: '后勤待办',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-apply',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/mealapply', component: MealApply, name: '用餐申请',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-my-managerment',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/mymanagement', component: MyManagement, name: '审核记录',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-my-apply',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/myapply', component: MyApply, name: '我的申请',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-search',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/search', component: Search, name: '记录查询',hidden: true }
        ]
    },
    // {
    //     path: '/home',
    //     component: Home,
    //     name: '后勤部门',
    //     iconCls: 'el-icon-custom-logistics',
    //     hidden: true,
    //     children: [
    //         { path: '/search', component: Search, name: '查询',hidden: true },
    //         { path: '/sign', component: Sign, name: '签收',hidden: true  }
    //     ]
    // },
    {
        path: '/home',
        component: Home,
        name: '用餐系统',
        iconCls: 'el-icon-custom-report',
        leaf: true,//只有一个节点
        hidden: true,
        children: [
            { path: '/report', component: Report, name: '统计报表',hidden: true }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '系统配置',
        iconCls: 'el-icon-custom-sys-manager',
        hidden: true,
        children: [
            { path: '/power', component: Power, name: '权限管理',hidden: true },
            { path: '/restaurant', component: Restaurant, name: '餐厅管理',hidden: true  },
            { path: '/expenses', component: Expenses, name: '费用管理',hidden: true  },
            { path: '/settingalert', component: SettingAlert, name: '提醒设置',hidden: true  }
        ]
    }
];

export default routes;
